package com.group.hugedatabehind.service;

import com.group.hugedatabehind.mapper.NameMapper;
import com.group.hugedatabehind.pojo.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NameService {

    @Autowired
    private NameMapper nameMapper;

    public Message getMessageBySenderName(String senderName) {
        return nameMapper.findBySenderName(senderName);
    }
}
